<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <img src="https://www.baidu.com/img/baidu_jgylogo3.gif" style="position: absolute; left: 100px; top: 100px;"
        onmousedown="if(event.shiftKey) drag(this,event)">

        <script>
            function drag(elemetToDrag,event) {
                // 初始鼠标位置，转换为文档坐标
                var scroll = getScr
            }
        </script>
</body>

</html>